This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Personnummer- och ålderkontroll V1.0 | |
| (C)David Lidström 2002 | |
| för Pellesoft.nu | |
| Skapad: 2002-03-28 | |
| Senast ändrad: 2002-03-28*/ | |
| function PNR_IsValid(vVad) { | |
| if( vVad.search(/\d\d\d\d-\d\d-\d\d-\d\d\d\d/) == 0 ) { | |
| var d = new Date(); | |
| var vYear = parseInt(vVad.substr(0,4)); | |
| var vMonth = parseInt(vVad.substr(5,2)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| echo "DELETE FROM moz_places WHERE rev_host LIKE '%elgoog%' AND url NOT LIKE 'http://google.com/' AND visit_count < 3;" | sqlite3 /Users/mfr/Library/Application\ Support/Firefox/Profiles/ghjefy2u.default/places.sqlite | |
| for f in ~/Library/Application\ Support/Firefox/Profiles/*/*.sqlite; do echo "VACUUM;" | sqlite3 "$f" ; done | |
| #for f in ~/Library/Application\ Support/Firefox/Profiles/*/*.sqlite; do echo $f; done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env expect -f | |
| # Start the CISCO VPN client on a Mac. Adapted from | |
| # https://blog.felipe-alfaro.com/2014/05/23/automating-cisco-anyconnect-secure-mobility-client-on-mac-os-x/ | |
| set HOSTNAME vpn.server.com | |
| set USER_NAME user.name | |
| set PASSWORD password | |
| spawn /opt/cisco/anyconnect/bin/vpn |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from selenium import webdriver | |
| from time import sleep | |
| from selenium.webdriver.chrome.options import Options | |
| url = 'https://online.flippingbook.com/view/315002/2/' | |
| chrome_options = Options() | |
| chrome_options.add_argument('--headless') | |
| chrome_options.add_argument('--start-maximized') | |
| chrome_options.add_argument("--window-size=4000,2040") |
OlderNewer