Skip to content

Instantly share code, notes, and snippets.

View sbucek's full-sized avatar
🏠
Working from home

Simon sbucek

🏠
Working from home
View GitHub Profile
@sbucek
sbucek / cbspells
Created September 20, 2021 20:01 — forked from Bugswriter/cbspells
Clipboard magic is a script which run bunch of clipboard related operation
#!/bin/sh
menu(){
printf "1. [URL] Expecto Shorten 🪄: Get a shorten url\n"
printf "2. [URL] Lumbos dl 🪄: Download file in ~/dl\n"
printf "3. [URL] Avada Playdavra 🪄: Play videos in mpv\n"
printf "4. [URL] Listenmora 🪄: Play audio in mpv\n"
printf "5. [Image] Imagum Savum 🪄: Save clipbaord image in ~/pix/save\n"
printf "6. [Text] Sendkulus 🪄: Send clipboard text with tgsend script\n"
printf "7. [Shell] Executa 🪄: This will run any shell command\n"
@sbucek
sbucek / AA
Created July 5, 2015 00:53
AA
sfwerf
we
rg
e
g
erg
e
rge
rg
erg
@sbucek
sbucek / jsbin.wubuq.html
Last active January 31, 2021 01:26
[Titleee] asdasdasdasdasd
<!DOCTYPE html>
<html ng-app="app">
<head>
<script src="http://cdnjs.cloudflare.com/ajax/libs/angular.js/1.2.1/angular.min.js"></script>
<meta charset="utf-8">
<title>Angular tips</title>
</head>
<body ng-controller="MainCtrl">
<person header="header">
<h2>{{header}}</h2>
@sbucek
sbucek / gist:8616198
Created January 25, 2014 13:14
JS: convert 12 to 24
function convert12to24(timeStr)
{
var meridian = timeStr.substr(timeStr.length-2).toLowerCase();
var hours = timeStr.substring(0, timeStr.indexOf(':'));
var minutes = timeStr.substring(timeStr.indexOf(':')+1, timeStr.indexOf(' '));
if (meridian=='pm')
{
hours = (hours=='12') ? '00' : parseInt(hours)+12 ;
}
else if(hours.length<2)
@sbucek
sbucek / gist:7186450
Created October 27, 2013 18:55
buceks
Version=3
ViewMode=1
hey
hey
madzarke
@sbucek
sbucek / .directory
Created October 27, 2013 18:55
bucek
aderColumnWidths=315,70,198
SortRole=size
Sorting=6
Timestamp=2013,9,18,20,57,2
Version=3
@sbucek
sbucek / .directory
Created October 27, 2013 16:03
settiiiingggggggggg
[Dolphin]
GroupedSorting=true
HeaderColumnWidths=315,70,198
SortRole=size
Sorting=6
Timestamp=2013,9,18,20,57,2
Version=3
ViewMode=1
VisibleRoles=CustomizedDetails,Details_size,Details_type
{ "keys": ["ctrl+k", "ctrl+i"], "command": "gist" },
{ "keys": ["ctrl+k", "ctrl+p"], "command": "gist_private" },
{ "keys": ["ctrl+k", "ctrl+s"], "command": "gist_update_file"
@sbucek
sbucek / 401.shtml
Created October 25, 2013 22:54
error_krneki.html
<html><head><title>401 Authorization Required</title></head>
<body bgcolor=white>
<h1>401 Authorization Required</h1>
HAHHAHAHAHHA
HAHAHAHAHAHAHAHA
Invalid login credentials!
</body></html>
from google.appengine.ext import dbxg_on = db.create_transaction_options(xg=True)def my_txn():    x = MyModel(a=3)    x.put()    y = MyModel(a=7)    y.put()db.run_in_transaction_options(xg_on, my_txn)